import request from '@/utils/request'
import qs from 'qs'

export const getIndexMiddle=(params)=>{
    return new request({
        url: './web-data-home/statisticsHomePage/statisticsHomePageMiddleData',
        method: 'get',
        params: params,
    });
}
export const getIndexTop=(params)=>{
    return new request({
        url: './web-data-home/statisticsHomePage/statisticsHomePageTopData',
        method: 'get',
        params: params,
    });
}
export const getHotSearchByTypeApi=(params)=>{
    return new request({
        url: './web-data-home/statisticsHomePage/statisticsHomePageHotData',
        method: 'get',
        params: params,
    });
}
export const getEventDataByType=(params)=>{
    return new request({
        url: './web-data-home/statisticsHomePage/statisticsHomePageEventData',
        method: 'get',
        params: params,
    });
}
export const getCaseData=(params)=>{
    return new request({
        url: './web-data-home/statisticsHomePage/statisticsHomePageCaseData',
        method: 'get'
    });
}
export const scamChart=(params)=>{
    return new request({
        url: './web-data-home/statisticsHomePage/statisticsHomePageFraudData',
        method: 'get'
    });
}
//获得国家漏洞库接口
export const getcountryvulnerepie=(params)=>{
    return new request({
        url: './web-data-home/statisticsHomePage/statisticsHomePageVulnerabilityTrand',
        method: 'get',

    });
}

//获得国家漏洞库接口
export const checkTicket=(params)=>{
    return new request({
        url: './web-data-home/ticket/login',
        method: 'post',
        params: params,
    });
}
export const vulnerabilityDatas=(params)=>{
    return new request({
        url: './web-data-thematic/vulnerabilityDB/listBrowse',
        method: 'post',
        data: params
    });
}

export const getindexpie=(params)=>{
    return new request({
        url: './indexPie',
        method: 'get',
        params: params,
    });
}
